﻿//-----------------------------------------------------------------------
// <copyright file="MidiNote.cs" company="Open Source">
//     This file is released under the Microsoft Reciprocal License (Ms-RL)
//     http://www.codeplex.com/wiidrumsynth/license
// </copyright>
//-----------------------------------------------------------------------

namespace MidiSynthLib
{
    using System;
    using System.Collections.Generic;
    using System.Text;

    /// <summary>
    /// An object which represents a Midi Note
    /// </summary>
    internal class MidiNote
    {
        /// <summary>
        /// The note represented by this instance
        /// </summary>
        private int note;
        
        /// <summary>
        /// The velocity of the note which this instance represents
        /// </summary>
        private int velocity;

        /// <summary>
        /// Initializes a new instance of the <see cref="MidiNote"/> class.
        /// </summary>
        /// <param name="note">The note represented by this instance</param>
        /// <param name="velocity">The velocity of the note represented by this instance</param>
        internal MidiNote(int note, int velocity)
        {
            this.note = note;
            this.velocity = velocity;
        }

        /// <summary>
        /// Gets the note.
        /// </summary>
        /// <value>The note represented by this instance</value>
        internal int Note
        {
            get { return this.note; }
        }

        /// <summary>
        /// Gets the velocity.
        /// </summary>
        /// <value>The velocity represented by this instance</value>
        internal int Velocity
        {
            get { return this.velocity; }
        }
    }
}
